.clearfix::after {
	clear: both;
	content: ".";
	display: block;
	height: 0;
	visibility: hidden;
}

.aui-mask {
	background-color: #000;
	position: fixed;
	z-index: 99;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0.3;
	filter: alpha(opacity=30);
	-moz-opacity: 0.3;
	display: none;
}

.aui-calendar {
	z-index: 999;
	width: 400px;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	background-color: #fff;
	display: none;
	@extend %centerMiddle;

	li {
		float: left;
	}
}

.aui-head {
	background-color: $mainColor;
	text-align: left;
	padding: 10px;
	margin: 10px;
}

.aui-head-dt {
	font-size: 20px;
	color: #ddd;
}

.aui-head-dd {
	font-size: 18px;
	color: #fff;
}

.aui-date {
	height: 44px;
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	z-index: 1002;
	margin: 10px 0 0 0;

	a {
		height: 44px;
		min-width: 25%;
		flex: 0 0 25%;
		padding: 0 0.9rem;
		display: flex;
		align-items: center;
		font-size: 0.7rem;
		white-space: nowrap;
		overflow: hidden;
		color: #fff;
		position: relative;

		&:first-child {
			order: 1;
			margin-right: -25%;
			font-size: 0.9rem;
			font-weight: bold;
		}

		&:last-child {
			order: 3;
			justify-content: flex-end;
		}
	}
}

.aui-date {
	.tomon {
		order: 2;
		display: flex;
		justify-content: center;
		align-items: center;
		height: 44px;
		width: 50%;
		margin-left: 25%;

		span {
			padding: 0 5px;
		}
	}

	.icon {
		width: 20px;
		height: 20px;
		display: block;
		border: none;
		float: left;
		background-size: 20px;
		background-repeat: no-repeat;
	}
}

.icon-prev {
	background-image: url("");
}

.icon-next {
	background-image: url("");
}

.aui-week {
	ol {
		display: -webkit-flex;
		display: flex;
		padding: 10px;
	}

	li {
		flex-grow: 1;
		color: #999;
	}
}

.aui-content {
	display: flex;
	width: 300%;
	margin-left: -100%;
}

.aui-day {
	flex: 1;
	width: 100%;
	display: block;
	overflow: hidden;
	padding: 0 10px;

	li {
		display: block;
		width: 14.2857%;
		text-align: center;
		font-size: 14px;
		background: #fff;
		position: relative;
		color: #000;

		span {
			display: block;
			width: 2.5rem;
			height: 2.5rem;
			line-height: 2.5rem;
			margin: 0 auto;
			text-align: center;
            cursor: pointer;
		}

		&.active {
			span {
				background-color: $mainColor;
				color: #fff;
				border-radius: 50%;
			}
		}

		&.gray {
			color: #ccc;
		}
	}
}

.aui-month,
.aui-year {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #ccc;
	margin: 0 10px;
}

.aui-month li,
.aui-year li {
	float: left;
	width: 25%;
	color: #909090;
	font-size: 16px;
	cursor: pointer;
	border-left: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	box-sizing: border-box;
	margin-left: -1px;
	margin-bottom: -1px;
}

.aui-month li.selected span {
	color: #449eef;
	font-weight: bold;
}

.aui-year li.current span {
	color: #449eef;
	font-weight: bold;
}

.aui-month li span,
.aui-year li span {
	display: block;
	width: 2.5rem;
	height: 5rem;
	line-height: 5rem;
	margin: 0 auto;
	text-align: center;
}

.aui-foot {
	text-align: center;
	padding: 0px 30px 20px;
    font-size: 14px;

	a {
		padding: 10px 20px;
		color: #449eef;
	}
}
